$(function(){
    $(".select-good1 div:nth-of-type(1)").mouseenter(function(){
        $(".select-good1 div:nth-of-type(1)").css("background","#3aa5c5")
        $(".select-good1 div:nth-of-type(1) p").css("color","#fff")
        $(".rect1").css("background","#fff");
    })
    $(".select-good1 div:nth-of-type(1)").mouseleave(function(){
        $(".select-good1 div:nth-of-type(1)").css("background","#f5f5f5");
        $(".select-good1 div:nth-of-type(1) p").css("color","#3aa5c5");
        $(".rect1").css("background","#3aa5c5");
    })

    $(".select-good1 div:nth-of-type(2)").mouseenter(function(){
        $(".select-good1 div:nth-of-type(2)").css("background","#3aa5c5")
        $(".select-good1 div:nth-of-type(2) p").css("color","#fff")
        $(".rect2").css("background","#fff");
    })
    $(".select-good1 div:nth-of-type(2)").mouseleave(function(){
        $(".select-good1 div:nth-of-type(2)").css("background","#f5f5f5");
        $(".select-good1 div:nth-of-type(2) p").css("color","#3aa5c5");
        $(".rect2").css("background","#3aa5c5");
    })

    $(".select-good1 div:nth-of-type(3)").mouseenter(function(){
        $(".select-good1 div:nth-of-type(3)").css("background","#3aa5c5")
        $(".select-good1 div:nth-of-type(3) p").css("color","#fff")
        $(".rect3").css("background","#fff");
    })
    $(".select-good1 div:nth-of-type(3)").mouseleave(function(){
        $(".select-good1 div:nth-of-type(3)").css("background","#f5f5f5");
        $(".select-good1 div:nth-of-type(3) p").css("color","#3aa5c5");
        $(".rect3").css("background","#3aa5c5");
    })

    $(".select-good1 div:nth-of-type(4)").mouseenter(function(){
        $(".select-good1 div:nth-of-type(4)").css("background","#3aa5c5")
        $(".select-good1 div:nth-of-type(4) p").css("color","#fff")
        $(".rect4").css("background","#fff");
    })
    $(".select-good1 div:nth-of-type(4)").mouseleave(function(){
        $(".select-good1 div:nth-of-type(4)").css("background","#f5f5f5");
        $(".select-good1 div:nth-of-type(4) p").css("color","#3aa5c5");
        $(".rec4").css("background","#3aa5c5");
    })

    $(".select-good1 div:nth-of-type(5)").mouseenter(function(){
        $(".select-good1 div:nth-of-type(5)").css("background","#3aa5c5")
        $(".select-good1 div:nth-of-type(5) p").css("color","#fff")
        $(".rect5").css("background","#fff");
    })
    $(".select-good1 div:nth-of-type(5)").mouseleave(function(){
        $(".select-good1 div:nth-of-type(5)").css("background","#f5f5f5");
        $(".select-good1 div:nth-of-type(5) p").css("color","#3aa5c5");
        $(".rec5").css("background","#3aa5c5");
    })

    $(".select-good2 div:nth-of-type(1)").mouseenter(function(){
        $(".select-good2 div:nth-of-type(1)").css("background","#3aa5c5")
        $(".select-good2 div:nth-of-type(1) p").css("color","#fff")
        $(".rect6").css("background","#fff");
    })
    $(".select-good2 div:nth-of-type(1)").mouseleave(function(){
        $(".select-good2 div:nth-of-type(1)").css("background","#f5f5f5");
        $(".select-good2 div:nth-of-type(1) p").css("color","#3aa5c5");
        $(".rec6").css("background","#3aa5c5");
    })

    $(".select-good2 div:nth-of-type(2)").mouseenter(function(){
        $(".select-good2 div:nth-of-type(2)").css("background","#3aa5c5")
        $(".select-good2 div:nth-of-type(2) p").css("color","#fff")
        $(".rect7").css("background","#fff");
    })
    $(".select-good2 div:nth-of-type(2)").mouseleave(function(){
        $(".select-good2 div:nth-of-type(2)").css("background","#f5f5f5");
        $(".select-good2 div:nth-of-type(2) p").css("color","#3aa5c5");
        $(".rec7").css("background","#3aa5c5");
    })

    $(".select-good2 div:nth-of-type(3)").mouseenter(function(){
        $(".select-good2 div:nth-of-type(3)").css("background","#3aa5c5")
        $(".select-good2 div:nth-of-type(3) p").css("color","#fff")
        $(".rect8").css("background","#fff");
    })
    $(".select-good2 div:nth-of-type(3)").mouseleave(function(){
        $(".select-good2 div:nth-of-type(3)").css("background","#f5f5f5");
        $(".select-good2 div:nth-of-type(3) p").css("color","#3aa5c5");
        $(".rec8").css("background","#3aa5c5");
    })

    $(".items-left1").mouseenter(function(){
        $(".family-border1").css("border","3px solid #3aa5c5").css("opacity","1");
    })
    $(".items-left1").mouseleave(function(){
        $(".family-border1").css("border","1px solid #999").css("opacity","0.2");
    })

    $(".items-right1").mouseenter(function(){
        $(".family-border2").css("border","3px solid #3aa5c5").css("opacity","1");
     })
     $(".items-right1").mouseleave(function(){
        $(".family-border2").css("border","1px solid #999").css("opacity","0.2");
     })

     //开启模态框
    $(".input-time input").focus(function(){
        $(".table-shadow").css("display","block");
    })
    $(".input-time input").blur(function(){
        $(".table-shadow").css("display","none");
    })
})